package com.springcloud.admin.controller;


import com.springcloud.admin.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderController
 * @Description 订单api
 * @Author huangzl
 * @Date 2018/10/30 19:12
 * @Version 1.0
 **/
@RestController
@RefreshScope
public class OrderController {

    @Value("${hello}")
    String hello;

    @RequestMapping(value = "/")
    public String hello(){
        return hello;
    }
    @Autowired
    private OrderService orderService;

    @RequestMapping(value = "/order/query")
    public String queryOrderList(){
        return orderService.queryOrderList();
    }

}